package com.sg.controller.bff;

import com.sg.service.biz.bff.TagService;
import com.sg.dto.biz.bff.req.*;
import com.sg.dto.biz.bff.res.*;
import com.sg.common.ro.OkrResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @version 1.0
 * @date ：
 */
@Api(value = "Tag", tags = {"Tag"})
@RestController
// @RequestMapping("/oms/tag/")
public class TagController {
    @Autowired
    TagService tagService;

    /**
     * B1-1查指标模板推荐标签列表(边界)
     * gen by moon at 10/24/2022, 9:55:21 PM
     */
    @PostMapping("/oms/tag/queryTargetTempRecommendTagListBorder")
    @ApiOperation(value = "B1-1查指标模板推荐标签列表(边界)", response = OkrResult.class)
    public OkrResult<BffQueryTargetTempRecommendTagListBorderRespDto> queryTargetTempRecommendTagListBorder(@RequestBody(required = false) @Validated BffQueryTargetTempRecommendTagListBorderReqDto reqDTO) {
        return OkrResult.success(tagService.queryTargetTempRecommendTagListBorder(reqDTO));
    }

    /**
     * B3-13查询指标模板标签记录列表(边界)
     * gen by moon at 10/8/2022, 3:08:33 AM
     */
    @PostMapping("/oms/tag/queryTargetTempTagRcordListBorder")
    @ApiOperation(value = "B3-13查询指标模板标签记录列表(边界)", response = OkrResult.class)
    public OkrResult<BffQueryTargetTempTagRcordListBorderRespDto> queryTargetTempTagRcordListBorder(@RequestBody(required = false) @Validated BffQueryTargetTempTagRcordListBorderReqDto reqDTO) {
        return OkrResult.success(tagService.queryTargetTempTagRcordListBorder(reqDTO));
    }

}

